package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author caijinkang
 * @date 2023年02月13日 10:24
 */
public class OrderParticularBody {
    /**
     * 订单编号
     *
     * @author caijinkang
     * @date 2023/2/13 10:41
     * @param null
     * @return null
     */
    private String orderNumber;
    /**
     * 订单进度
     *
     * @author caijinkang
     * @date 2023/2/13 10:41
     * @param null
     * @return null
     */
    private Double rateOfProgress;
    /**
     * 订单公司
     *
     * @author caijinkang
     * @date 2023/2/13 10:43
     * @param null
     * @return null
     */
    private String orderCompany;
    /**
     * 产区
     *
     * @author caijinkang
     * @date 2023/2/13 10:44
     * @param null
     * @return null
     */
    private String plantName;
    /**
     * 负责人
     *
     * @author caijinkang
     * @date 2023/2/13 10:44
     * @param null
     * @return null
     */
    private String principal;
    /**
     * 订单金额
     *
     * @author caijinkang
     * @date 2023/2/13 10:44
     * @param null
     * @return null
     */
    private Integer orderAmount;
    /**
     * 状态
     *
     * @author caijinkang
     * @date 2023/2/13 10:47
     * @param null
     * @return null
     */
    private Integer state;
    /**
     * 开始时间
     *
     * @author caijinkang
     * @date 2023/2/13 10:48
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    /**
     * 结束时间
     *
     * @author caijinkang
     * @date 2023/2/13 10:49
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    /**
     * 批次数量
     *
     * @author caijinkang
     * @date 2023/2/13 10:52
     * @param null
     * @return null
     */
    private Integer batchCount;
    /**
     * 分段数量
     *
     * @author caijinkang
     * @date 2023/2/13 10:53
     * @param null
     * @return null
     */
    private Integer sectionCount;
    /**
     * 参与人数
     *
     * @author caijinkang
     * @date 2023/2/13 10:54
     * @param null
     * @return null
     */
    private Integer peopleNumber;

    public OrderParticularBody() {
    }

    public OrderParticularBody(String orderNumber, Double rateOfProgress, String orderCompany, String plantName, String principal, Integer orderAmount, Integer state, Date beginDate, Date endDate, Integer batchCount, Integer sectionCount, Integer peopleNumber) {
        this.orderNumber = orderNumber;
        this.rateOfProgress = rateOfProgress;
        this.orderCompany = orderCompany;
        this.plantName = plantName;
        this.principal = principal;
        this.orderAmount = orderAmount;
        this.state = state;
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.batchCount = batchCount;
        this.sectionCount = sectionCount;
        this.peopleNumber = peopleNumber;
    }

    @Override
    public String toString() {
        return "OrderParticularBody{" + "orderNumber='" + orderNumber + '\'' + ", rateOfProgress=" + rateOfProgress + ", orderCompany='" + orderCompany + '\'' + ", plantName='" + plantName + '\'' + ", principal='" + principal + '\'' + ", orderAmount=" + orderAmount + ", state=" + state + ", beginDate=" + beginDate + ", endDate=" + endDate + ", batchCount=" + batchCount + ", sectionCount=" + sectionCount + ", peopleNumber=" + peopleNumber + '}';
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Double getRateOfProgress() {
        return rateOfProgress;
    }

    public void setRateOfProgress(Double rateOfProgress) {
        this.rateOfProgress = rateOfProgress;
    }

    public String getOrderCompany() {
        return orderCompany;
    }

    public void setOrderCompany(String orderCompany) {
        this.orderCompany = orderCompany;
    }

    public String getPlantName() {
        return plantName;
    }

    public void setPlantName(String plantName) {
        this.plantName = plantName;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public Integer getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Integer orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getBatchCount() {
        return batchCount;
    }

    public void setBatchCount(Integer batchCount) {
        this.batchCount = batchCount;
    }

    public Integer getSectionCount() {
        return sectionCount;
    }

    public void setSectionCount(Integer sectionCount) {
        this.sectionCount = sectionCount;
    }

    public Integer getPeopleNumber() {
        return peopleNumber;
    }

    public void setPeopleNumber(Integer peopleNumber) {
        this.peopleNumber = peopleNumber;
    }
}
